package cn.zymall.goods.mapper;

import cn.zymall.common.model.SpuBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lxh
 * @Description 商品品牌持久层
 * @date 2020/8/18 23:01
 * @Classname BrandMapper
 **/
@Mapper
public interface SpuBrandMapper extends BaseMapper<SpuBrand> {

	/**
	 * 查询所有的商品品牌
	 * @return
	 */
	public List<SpuBrand> findAll();


	/**
	 * 添加商品品牌
	 * @param spuBrand
	 */
	public void add(SpuBrand spuBrand);


	/**
	 * 修改商品品牌
	 * @param spuBrand
	 */
	public void amend(SpuBrand spuBrand);


	/**
	 * 根据id删除商品品牌
	 * @param spuBrand
	 */
	public void del(SpuBrand spuBrand);


	/**
	 * 查询所有的未禁用的品牌
	 * @return
	 */
	public List<SpuBrand> findAllBrand();

}
